package com.zksk.mbg.admin.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.zksk.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 协议（保函）模板表
 * </p>
 *
 * @author Zksk Acmen
 * @since 2022-12-05
 */
@Data
@Accessors(chain = true)
@TableName("platform_agreement")
@ApiModel(value = "Agreement对象", description = "协议（保函）模板表")
public class Agreement extends BaseEntity {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("协议类型（委托合同 承诺书 投保单）字典 ")
    @TableField("agreement_type")
    private String agreementType;

    @ApiModelProperty("模板名称")
    @TableField("temp_name")
    private String tempName;

    @ApiModelProperty("模板文件路径")
    @TableField("temp_file_path")
    private String tempFilePath;

    @ApiModelProperty("文件名称")
    @TableField("file_name")
    private String fileName;

    @ApiModelProperty("签章信息")
    @TableField("sign_info")
    private String signInfo;

//    @ApiModelProperty("关联产品枚举id")
//    @TableField("ref_prod_enum_id")
//    private Long refProdEnumId;

    @ApiModelProperty("关联产品类型")
    @TableField("ref_prod_type")
    private String refProdType;

    @TableField(value = "del_flag", fill = FieldFill.INSERT)
    @TableLogic
    private Integer delFlag;


    public static final String ID = "id";

    public static final String AGREEMENT_TYPE = "agreement_type";

    public static final String TEMP_NAME = "temp_name";

    public static final String TEMP_FILE_PATH = "temp_file_path";

    public static final String FILE_NAME = "file_name";

    public static final String SIGN_INFO = "sign_info";

    public static final String REF_PROD_ENUM_ID = "ref_prod_enum_id";

    public static final String REF_PROD_TYPE = "ref_prod_type";

    public static final String DEL_FLAG = "del_flag";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
